// 搜索值标题（模糊匹配）
import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from "@dfeidao/atom-web/render/render";
import p001 from './p001';

export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// todo
	console.log(fd);
	const n1 = fd.data.node.querySelector<HTMLInputElement>('[data-id="value_title"]');
	const v1 = n1.value;

	const res = await nodejs('basic-data-wzz/zj-000002/s001', {
		page: {
			value_title: v1
		}
	});

	render(fd, res, p001, 'p001', 'inner');

	console.log(v1);
}
